package jjn.huaweiod;

import java.util.*;

/**
 * @author Jiang Jining
 * @since 2023-07-30 22:39
 */
public class Hydro_P1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        Integer index = Integer.parseInt(scanner.nextLine());
        String input = scanner.nextLine();
        System.out.println(filterRegex(input, index));
    }
    
    private static String filterRegex(String input, Integer index) {
        Deque<String> queue = new LinkedList<>();
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < input.length(); i++) {
            char c = input.charAt(i);
            if (c == '_' && (stringBuilder.isEmpty() || stringBuilder.charAt(0) != '"')) {
                queue.offer(stringBuilder.toString());
                stringBuilder.setLength(0);
            } else if (c == '"' && !stringBuilder.isEmpty()) {
                stringBuilder.append('"');
                queue.offer(stringBuilder.toString());
                stringBuilder.setLength(0);
            } else {
                stringBuilder.append(c);
            }
        }
        if (!stringBuilder.isEmpty()) {
            queue.offer(stringBuilder.toString());
        }
        List<String> result = new ArrayList<>();
        for (String s : queue) {
            if (s == null || s.isEmpty()) {
                continue;
            }
            result.add(s);
        }
        if (index >= result.size()) {
            System.out.println("ERROR");
        }
        result.add(index, "******");
        return String.join("_", result);
    }
}
